#!/usr/bin/node

const log = console.log,
      src = process.argv[2],
      dst = process.argv[3],
      fs = require('fs');

let srcStream = fs.createReadStream(src),
    dstStream = fs.createWriteStream(dst);
srcStream.pipe(dstStream);
dstStream.on('close',()=>{
 fs.chmodSync(dst, fs.statSync(src).mode);
});

